<definitions 
  xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"
  xmlns:camunda="http://camunda.org/schema/1.0/bpmn"
  targetNamespace="Examples">
  
  <process id="executionListenersProcess" isExecutable="true">
    
    <startEvent id="theStart" name="Start Event">
      <extensionElements>
        <camunda:executionListener class="org.camunda.bpm.engine.test.bpmn.executionlistener.CurrentActivityExecutionListener" event="end" />
      </extensionElements>
    </startEvent>

    <sequenceFlow sourceRef="theStart" targetRef="noneEvent" />    
    
    <intermediateThrowEvent id="noneEvent" name="None Event">
      <extensionElements>
        <camunda:executionListener class="org.camunda.bpm.engine.test.bpmn.executionlistener.CurrentActivityExecutionListener" event="start" />
      </extensionElements>
    </intermediateThrowEvent>
    
    <sequenceFlow sourceRef="noneEvent" targetRef="theEnd" />

    <endEvent id="theEnd" name="End Event">
      <extensionElements>
        <camunda:executionListener class="org.camunda.bpm.engine.test.bpmn.executionlistener.CurrentActivityExecutionListener" event="end" />
      </extensionElements>
    </endEvent>
    
  </process>
</definitions>